<!-- src/views/admin/AccessControl.vue -->
<template>
  <el-card class="access-control-page">
    <el-tabs v-model="activeTab">
      <el-tab-pane label="角色管理" name="roles">
        <RolesList />
      </el-tab-pane>
      <el-tab-pane label="权限管理" name="perms">
        <PermissionsList />
      </el-tab-pane>
    </el-tabs>
  </el-card>
</template>
  
  <script setup>
import { ref } from "vue";
import RolesList from "./RolePermissionsView.vue";
import PermissionsList from "./PermissionsList.vue";

const activeTab = ref("roles");
</script>
  
  <style scoped>
.access-control-page {
  padding: 16px;
}
</style>
  